import React,{useState} from 'react'
import { View, Text, Image} from '@tarojs/components'

const bannerStyle = {
  width: '100%',
  height: '160px',
}

function Banner ({bannerUrl}){
  return (
    <View className='banner' style={bannerStyle}>
      <Image style={{width: '100%', height: '100%'}} src={bannerUrl.url} />
    </View>
  )
}

export default Banner
